#ifndef __SM_NVS_H_
#define __SM_NVS_H_

#include <stdint.h>
#include <stddef.h>
#include "esp_err.h"

void sm_nvs_flash_init(void);
esp_err_t sm_nvs_flash_write(const char* nvs_flash_name,const char* key,const char* value);
esp_err_t sm_nvs_flash_read(const char* nvs_flash_name,const char* key,char* value,size_t len);
esp_err_t sm_nvs_flash_erase_key(const char* nvs_flash_name,const char* key);

#endif

